package com.assets.asset.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.assets.common.annotation.Excel;
import com.assets.common.core.domain.BaseEntity;

/**
 * 退库对象 t_return
 *
 * @author bin
 * @date 2023-03-13
 */
public class TReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 退库单号 */
    @Excel(name = "退库单号")
    private String returnId;

    /** 退库处理人 */
    @Excel(name = "退库处理人")
    private String returnHandler;

    /** 资产编码 */
    @Excel(name = "资产编码")
    private String assetCode;

    /** 退库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 所属公司 */
    @Excel(name = "所属公司")
    private String assetCompany;

    /** 退库说明 */
    @Excel(name = "退库说明")
    private String returnRemark;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setReturnId(String returnId)
    {
        this.returnId = returnId;
    }

    public String getReturnId()
    {
        return returnId;
    }
    public void setReturnHandler(String returnHandler)
    {
        this.returnHandler = returnHandler;
    }

    public String getReturnHandler()
    {
        return returnHandler;
    }
    public void setAssetCode(String assetCode)
    {
        this.assetCode = assetCode;
    }

    public String getAssetCode()
    {
        return assetCode;
    }
    public void setReturnTime(Date returnTime)
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime()
    {
        return returnTime;
    }
    public void setAssetCompany(String assetCompany)
    {
        this.assetCompany = assetCompany;
    }

    public String getAssetCompany()
    {
        return assetCompany;
    }
    public void setReturnRemark(String returnRemark)
    {
        this.returnRemark = returnRemark;
    }

    public String getReturnRemark()
    {
        return returnRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("returnId", getReturnId())
                .append("returnHandler", getReturnHandler())
                .append("assetCode", getAssetCode())
                .append("returnTime", getReturnTime())
                .append("assetCompany", getAssetCompany())
                .append("returnRemark", getReturnRemark())
                .toString();
    }
}
